<?php /* Smarty version Smarty-3.1.15, created on 2018-11-20 16:45:55
         compiled from "D:\project\classic_games\view\admin\member\main.php" */ ?>
<?php /*%%SmartyHeaderCode:302135bea31be1a5f04-77055001%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '810c9df8b110c57d9fefe77da13c5ea7b841d1db' => 
    array (
      0 => 'D:\\project\\classic_games\\view\\admin\\member\\main.php',
      1 => 1542620052,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '302135bea31be1a5f04-77055001',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.15',
  'unifunc' => 'content_5bea31be2c7017_23431131',
  'variables' => 
  array (
    'CSSDIR' => 0,
    'count' => 0,
    'URL' => 0,
    '_G' => 0,
    '_GET' => 0,
    'v' => 0,
    'groupid' => 0,
    'starttime' => 0,
    'endtime' => 0,
    'goods' => 0,
    'showpage' => 0,
    'CURMODULE' => 0,
    'CURACTION' => 0,
    'base_url' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5bea31be2c7017_23431131')) {function content_5bea31be2c7017_23431131($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('../common_admin/left_bar.php', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<link href="<?php echo $_smarty_tpl->tpl_vars['CSSDIR']->value;?>
/emoji.css?cb=<?php echo time();?>
" rel="stylesheet" type="text/css" />
<form enctype="multipart/form-data" method="post"  action="">

<div class="table_top">
    <div class="table_top_l">共找到(<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
)条会员信息</div>
    <div class="table_top_r">
      <ul>
        <li ><a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=main">全部</a></li>

<!-- <?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['_G']->value['group']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
 <li <?php if ($_smarty_tpl->tpl_vars['_GET']->value['groupid']==$_smarty_tpl->tpl_vars['v']->value['id']) {?> class="on"<?php }?>><a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=main&groupid=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['name'];?>
</a></li>
<?php } ?>  -->

 <!-- <li <?php if ($_smarty_tpl->tpl_vars['_GET']->value['check']=='1') {?> class="on"<?php }?>><a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=main&check=1">待审核</a></li>
 <li <?php if ($_smarty_tpl->tpl_vars['_GET']->value['check']=='0') {?> class="on"<?php }?>><a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=main&check=0">未审核</a></li>
 
 <li <?php if ($_smarty_tpl->tpl_vars['_GET']->value['seller']=='1') {?> class="on"<?php }?>><a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=main&seller=1">商家</a></li>
 <li <?php if ($_smarty_tpl->tpl_vars['_GET']->value['seller']=='0') {?> class="on"<?php }?>><a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=main&seller=0">普通用户</a></li>  -->
<li>
<a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=main&groupid=24">微信小程序</a>
</li>

<li>
<a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=main&groupid=25">微信公众号</a>
</li>

<li <?php if ($_smarty_tpl->tpl_vars['_GET']->value['order']=='login_count') {?> class="on"<?php }?>>
<a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=main<?php if ($_smarty_tpl->tpl_vars['groupid']->value=='') {?><?php } else { ?>&groupid=<?php echo $_smarty_tpl->tpl_vars['groupid']->value;?>
<?php }?>&order=login_count&sort=<?php if ($_smarty_tpl->tpl_vars['_GET']->value['sort']=='desc') {?>asc<?php } else { ?>desc<?php }?>">登录次数</a>
</li>

<li <?php if ($_smarty_tpl->tpl_vars['_GET']->value['order']=='regdate') {?> class="on"<?php }?>>
<a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=main<?php if ($_smarty_tpl->tpl_vars['groupid']->value=='') {?><?php } else { ?>&groupid=<?php echo $_smarty_tpl->tpl_vars['groupid']->value;?>
<?php }?>&order=regdate&sort=<?php if ($_smarty_tpl->tpl_vars['_GET']->value['sort']=='desc') {?>asc<?php } else { ?>desc<?php }?>">注册时间</a>
</li>

<li <?php if ($_smarty_tpl->tpl_vars['_GET']->value['order']=='login_time') {?> class="on"<?php }?>>
<a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=main<?php if ($_smarty_tpl->tpl_vars['groupid']->value=='') {?><?php } else { ?>&groupid=<?php echo $_smarty_tpl->tpl_vars['groupid']->value;?>
<?php }?>&order=login_time&sort=<?php if ($_smarty_tpl->tpl_vars['_GET']->value['sort']=='desc') {?>asc<?php } else { ?>desc<?php }?>">登录时间</a>
</li>
<!-- <li <?php if ($_smarty_tpl->tpl_vars['_GET']->value['order']=='jf') {?> class="on"<?php }?>>

<a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=main&<?php if ($_smarty_tpl->tpl_vars['_GET']->value['groupid']!='') {?>groupid=<?php echo $_smarty_tpl->tpl_vars['v']->value['id'];?>
<?php }?>&order=jf&sort=<?php if ($_smarty_tpl->tpl_vars['_GET']->value['sort']=='desc') {?>asc<?php } else { ?>desc<?php }?>">积分</a>
</li> -->
<li <?php if ($_smarty_tpl->tpl_vars['_GET']->value['order']=='jf') {?> class="on"<?php }?>>

<a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=formid">formid的查询</a>
</li>


      </ul>
    </div>
  </div>

开始时间:
<input type="text" name="starttime"  class="txt _dateline starttime" readonly="readonly" value="<?php echo $_smarty_tpl->tpl_vars['starttime']->value;?>
" />
结束时间:
<input type="text" name="endtime"  class="txt _dateline endtime" readonly="readonly" value="<?php echo $_smarty_tpl->tpl_vars['endtime']->value;?>
" />
<select name="selecttype" id="selecttype">

<option value="xiaochengxu">微信小程序</option>


</select>

  <a  onclick="tijiao(this)" class="btn find" href="#">查询</a>
总人数:<?php echo $_smarty_tpl->tpl_vars['count']->value;?>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <input type="button" value="关掉所有去玩的页面" class="btn" onclick="closeplay()">
    <input type="button" value="开启所有去玩的页面" class="btn" onclick="openplay()">

  <div class="table_main">
  <table class="tb tb2 ">
    <tbody>
      <tr class="hover">
       <th class="td25">删除</th>
       <th class="td25">uid</th>
        <th>用户名</th>
          <th><span style="margin-left: 40px;">头像</span></th>
        <th>推荐人</th>
        <!--<th>登录ip</th>-->
        <th>登录时间</th>
        <!--<th>注册ip</th>-->
        <th>注册时间</th>
     <th>登录次数</th>
        <th>编辑</th> 

        <th>删除</th>    
 
      </tr>
      </tbody>   
      <!--<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['goods']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>-->
       <tbody>
      <tr class="hover">  
        <td class="td25"><input type="checkbox" name="del[<?php echo $_smarty_tpl->tpl_vars['v']->value['uid'];?>
]" value="1" class="_del" />
         				 <input type="hidden" name="ids[<?php echo $_smarty_tpl->tpl_vars['v']->value['uid'];?>
]" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['uid'];?>
" />
                         <input type="hidden" name="username[<?php echo $_smarty_tpl->tpl_vars['v']->value['uid'];?>
]" value="<?php echo $_smarty_tpl->tpl_vars['v']->value['username'];?>
" />
                         </td>
        <td class="td25"><?php echo $_smarty_tpl->tpl_vars['v']->value['uid'];?>
</td>
        <td title="<?php echo $_smarty_tpl->tpl_vars['v']->value['email'];?>
"><?php echo emoji_unified_to_html($_smarty_tpl->tpl_vars['v']->value['username']);?>
</td>
          <td><img src="<?php echo $_smarty_tpl->tpl_vars['v']->value['picurl'];?>
" style="width: 100px; height: 100px;" /></td>
           <td>
           <?php if ($_smarty_tpl->tpl_vars['v']->value['t_uid']==0) {?>
           <?php } else { ?>
           <?php echo $_smarty_tpl->tpl_vars['v']->value['t_uid'];?>

          (<?php echo emoji_unified_to_html($_smarty_tpl->tpl_vars['v']->value['username2']);?>
)
           <?php }?>
           </td>
         <!--<td><?php echo $_smarty_tpl->tpl_vars['v']->value['login_ip'];?>
</td>-->
        <td  class="_dgmdate" data-time="<?php echo $_smarty_tpl->tpl_vars['v']->value['login_time'];?>
"></td>
        
        <!--<td><?php echo $_smarty_tpl->tpl_vars['v']->value['regip'];?>
</td>-->
        <td  class="_dgmdate" data-time="<?php echo $_smarty_tpl->tpl_vars['v']->value['regdate'];?>
"></td>
       <td><?php echo $_smarty_tpl->tpl_vars['v']->value['login_count'];?>
</td>
        
        <td><a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=post&uid=<?php echo $_smarty_tpl->tpl_vars['v']->value['uid'];?>
" >编辑</a></td>
        
        <td><a href="<?php echo $_smarty_tpl->tpl_vars['URL']->value;?>
m=member&a=del&uid=<?php echo $_smarty_tpl->tpl_vars['v']->value['uid'];?>
" >删除</a></td>
       
        <td>
      </tr>
      </tbody>     
       <!--<?php } ?>-->
       <tbody>
      <tr>
        <td class="td25">
        <input type="checkbox" class="_del_all" />反选</td>
        <td><input type="checkbox"  name="_del_all" value="1"/>删除</td>
        <td colspan="12">
        <div class="y"><?php echo $_smarty_tpl->tpl_vars['showpage']->value;?>
</div>
        <div class="fixsel">
            <input type="submit" class="btn submit_btn" name="onsubmit"  value=" 提 交" >
          </div></td>
      </tr>
    </tbody>
  </table>
  </div>
<input type="hidden" name="m" value="<?php echo $_smarty_tpl->tpl_vars['CURMODULE']->value;?>
" />
<input type="hidden" name="a" value="<?php echo $_smarty_tpl->tpl_vars['CURACTION']->value;?>
" />
</form>
<script type="text/javascript">
    function tijiao(obj) {
     $(obj).attr("href","#");
        starttime = $(".starttime").val();
        endtime = $(".endtime").val();
        selecttype=$("#selecttype").val();
        
if(starttime.length==0|| endtime.length==0){
          alert("查询时间不能为空");return;
        }

        starttime=starttime.replace(/-/g,'/');
        endtime=endtime.replace(/-/g,'/');
        starttime=new Date(starttime);
        endtime=new Date(endtime);
        starttime=starttime.getTime();
        endtime=endtime.getTime();
        starttime=(starttime)/1000;
         endtime=(endtime)/1000;
         if(starttime>=endtime){
          alert("起始时时间不能大于或等于结束时间");return;
        }

       $(obj).attr("href",'<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
?m=member&a=main&starttime='+starttime+'&endtime='+endtime+'&selecttype='+selecttype);

       
        

    }

    function openplay(){
        $.ajax({
            url: "<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
?m=member&a=openplay",
            data: {
                allowplay:1
            },
            type: 'post',
            dataType: 'json',

            success: function (data) {
                if(data.r==1){
                    alert('页面开启成功');
                    location.href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
?m=member&a=main"
                }
            },

            error: function (data) {}
        });
    }

    function closeplay(){
        $.ajax({
            url:"<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
?m=member&a=closeplay",
            data: {
              allowplay:0
            },
            type: 'post',
            dataType: 'json',

            success: function (data) {
              console.log(data);
                if(data.r==1){
                    alert('页面关闭成功');
                    location.href="<?php echo $_smarty_tpl->tpl_vars['base_url']->value;?>
?m=member&a=main"
                }
            },

            error: function (data) {

            }
        });
    }
</script>



<?php echo $_smarty_tpl->getSubTemplate ('../common_admin/right_bar.php', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>
 <?php }} ?>
